package org.wcms.surrounded.modules;

import org.wcms.surrounded.web.FBLoginServlet;
import org.wcms.surrounded.web.SurroundedAjaxServlet;
import org.wcms.surrounded.web.SurroundedGameServlet;
import org.wcms.surrounded.web.SurroundedLogoutServlet;
import org.wcms.surrounded.web.SurrounderUserFilter;

import com.google.inject.servlet.ServletModule;

public class SurroundedServletModule extends ServletModule {

    @Override
    protected void configureServlets() {
        filter("/*").through(SurrounderUserFilter.class);
        serve("/", "/index.html", "/index.jsp", "/index").with(SurroundedGameServlet.class);        
        serve("/ajax").with(SurroundedAjaxServlet.class);
        serve("/logout").with(SurroundedLogoutServlet.class);
        serve("/fblogin").with(FBLoginServlet.class);
    }
    
}
